package com.itheima.demo4;

public class Box {
    public static boolean milk = false;
    public static int  x = 0;

    public static final Object lock =new Object();

    public Box() {

    }

    public static boolean isMilk() {
        return milk;
    }

    public static void setMilk(boolean milk) {
        Box.milk = milk;
    }

    public static int getX() {
        return x;
    }

    public static void setX(int x) {
        Box.x = x;
    }
}
